// list 学生资料 list2 学生购买课程信息
let createSudentDetailBuy = (list,list2) => {
  $(".third-right-content")[0] && $(".third-right-content")[0].remove();
  let wrap = document.createElement("div");
  wrap.className = "third-right-content animated bounceInDown";
  wrap.innerHTML = `
    <div class='right-top-name'>
        <img width='39' height='38' src='${list.teacherimg}' />
        <div>${list.teachername}</div>
    </div>
    <div class='right-top-type'>
        企业学生
    </div>
    <div class='right-buy-student'>母语:${list2.language}</div>
    <div class='right-buy-student'>目前水平:${list2.level}</div>
    <div class='right-buy-student'>学习经历：${list2.experience}</div>
    <div class='right-buy-student'>学习目标：${list2.learningobjectives}</div>
    <div class='right-buy-student'>使用教程：${list2.teachingmaterial}</div>
    <div class='right-buy-student'>其它：${list2.other}</div>
    <div class='right-btn-student'><i class='iconfont icon-yanjing' style='margin-right:2px'></i>学生归档</div>
`;
  $(".third-right")[0].appendChild(wrap);

  $('.right-btn-student')[0].addEventListener('click',() => {
    Dreamer.success('归档成功')
  })
};

let createStudentDetailNoBuy = (list) => {
  $(".third-right-content")[0] && $(".third-right-content")[0].remove();
  let wrap = document.createElement("div");
  wrap.className = "third-right-content animated bounceInDown";
  wrap.innerHTML = `
        <div class='right-top-name'>
            <img width='39' height='38' src='${list.teacherimg}' />
            <div>${list.teachername+'学生'}</div>
        </div>
        <div class='right-top-type'>
            企业学生
        </div>
        <div class='right-top-detail'>Lily L开始与您预订课程，但尚未完成付款。你可以开始对话，询问学生是否需要你的协助，会一些关于你的教学方法和技巧等的更多细节。</div>
        <div class='right-btn-student'><i class='iconfont icon-yanjing' style='margin-right:2px'></i>学生归档</div>
    `;
  $(".third-right")[0].appendChild(wrap);
};


export {
    createSudentDetailBuy,
    createStudentDetailNoBuy
}